import request from '@/utils/request'

// 查询kong配置信息列表
export function kongServiceList(query) {
  return request({
    url: '/kong/service/list',
    method: 'get',
    params: query
  })
}

export function addService(data){
  return request({
    url: '/kong/service/add' ,
    method: 'post',
    data: data
  })
}

export function deleteService(id){
  return request({
    url: '/kong/service/' + id,
    method: 'delete'
  })
}

export function getService(id){
  return request({
    url: '/kong/service/' + id,
    method: 'get'
  })
}


export function updateService(data){
  return request({
    url: '/kong/service/update/' + data.id,
    method: 'post',
    data: data
  })
}